﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using DTN.Core.Utilities;

namespace com.dtn.deals
{
    public class tbl_ContactUsInfo
    {
        private System.Int32 _ID;
        public System.Int32 ID
        {
            get { return this._ID; }
            set { this._ID = value; }
        }
        private System.String _NameCus;
        public System.String Namecus
        {
            get { return this._NameCus; }
            set { this._NameCus = value; }
        }
        private System.String _EmailCus;
        public System.String EmailCus
		{
			get { return this._EmailCus; }		
			set { this._EmailCus = value; }
		}
        private System.String _Message;
        public System.String Message
        {
            get { return this._Message; }
            set { this._Message = value; }
        }
        private System.Int32 _isDel;
        public System.Int32 isDel
        {
            get { return this._isDel; }
            set { this._isDel = value; }
        }
        private System.DateTime _cDate;
        public System.DateTime cDate
        {
            get { return this._cDate; }
            set { this._cDate = value; }
        }
        public tbl_ContactUsInfo() { }
        //Cuong Code
        public tbl_ContactUsInfo(DataRow info)
        {
            _ID = ConvertUtility.ToInt32(info["ID"]);
            _NameCus = ConvertUtility.ToString(info["NameCus"]);
            _EmailCus = ConvertUtility.ToString(info["EmailCus"]);
            _Message = ConvertUtility.ToString(info["Message"]);
            _cDate = ConvertUtility.ToDateTime(info["cDate"]);
            _isDel = ConvertUtility.ToInt32(info["isDel"]);
            

        }
        public tbl_ContactUsInfo(DataRowView info)
        {
            ID = ConvertUtility.ToInt32(info["ID"]);
            _NameCus = ConvertUtility.ToString(info["NameCus"]);
            _EmailCus = ConvertUtility.ToString(info["EmailCus"]);
            _Message = ConvertUtility.ToString(info["Message"]);
            _cDate = ConvertUtility.ToDateTime(info["cDate"]);
            _isDel = ConvertUtility.ToInt32(info["isDel"]);
        }
        public tbl_ContactUsInfo(SqlDataReader info)
        {
            ID = ConvertUtility.ToInt32(info["ID"]);
            _NameCus = ConvertUtility.ToString(info["NameCus"]);
            _EmailCus = ConvertUtility.ToString(info["EmailCus"]);
            _Message = ConvertUtility.ToString(info["Message"]);
            _cDate = ConvertUtility.ToDateTime(info["cDate"]);
            _isDel = ConvertUtility.ToInt32(info["isDel"]);
        }
    }
}
